<?php

/**
 * platillo actions.
 *
 * @package    dietas
 * @subpackage platillo
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class platilloActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
	public function executeIndex(sfWebRequest $request){
		
	}

	public function execute__productos(sfWebRequest $request){
		
	}

	public function executeInsertar(sfWebRequest $request){
		$plato = new PLATILLO();
		echo 'AAAAAAAAAAAAAAAAAA';
		$plato->nombre = $request->getPostParameter("nombre", "Nombre de receta");
		$plato->preparacion = $request->getPostParameter("preparacion", "Instrucciones no vienen");
		$ingred = new INGREDIENTE();
		$plato->save();
		//$this->forward('platillo', 'index');
	}
}
